import axios from '../axios'


const subjects = {

    getsubjects(params) {
        return axios({
            url: "/subjects/getSubjects",
            method: "GET",
            params
        })
    },
    // 删除
    deleteSubjects(_id) {
        return axios({
            url: "/subjects/deleteSubjects",
            method: "delete",
            data: {
                _id,
            },
        });
    },


    // //新增班级
    addSubjects(subject) {
        return axios({
            url: "/subjects/addSubjects",
            method: "post",
            data: subject,
        });

    },







}


export default subjects